package org.example.erp.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.erp.domain.WarehouseArea;
import org.example.erp.domain.WarehouseLocation;
import org.example.erp.service.WarehouseLocationService;
import org.example.erp.mapper.WarehouseLocationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author 86180
* @description 针对表【warehouse_location(库位管理表)】的数据库操作Service实现
* @createDate 2024-11-27 08:44:38
*/
@Service
public class WarehouseLocationServiceImpl extends ServiceImpl<WarehouseLocationMapper, WarehouseLocation>
    implements WarehouseLocationService{
    @Autowired
    private WarehouseLocationMapper warehouseLocationMapper;
    public IPage<WarehouseLocation> findLocation(Integer currentPage,
                                                  Integer pageSize,
                                                  Integer warehouseAreaId,
                                                  String warehouseLocationCode,
                                                  String warehouseLocationName

    ){
        Page<WarehouseArea> page=new Page<>(currentPage,pageSize);
        return warehouseLocationMapper.findLocation(page,warehouseAreaId,warehouseLocationCode,warehouseLocationName);
    }
}




